package markgame2dphys;

import java.awt.Color;

import net.phys2d.math.Vector2f;
import net.phys2d.raw.shapes.Circle;

public class MarkGameCircle extends MarkGameObject{

	public Circle circle = null;

	public MarkGameCircle(float radius, float mass) {
		super(new Circle(radius), mass);
		circle = (Circle)body.getShape();
	}

	@Override
	public void paint(MarkGameGraphics g) {
		g.setColor(Color.BLACK);
		g.pushTransform();{
			g.rotate(body.getRotation(), body.getPosition());
			g.drawCircle(body.getPosition(), circle.getRadius());
			g.drawLine(body.getPosition(), new Vector2f(body.getPosition().x+circle.getRadius(), body.getPosition().y));
		}g.popTransform();
	}

}
